﻿// JScript 文件
function   setCookie(name,value)   
  {   
      var   Days   =   30;   //此   cookie   将被保存   30   天   
      var   exp     =   new   Date();         //new   Date("December   31,   9998");   
      exp.setTime(exp.getTime()   +   Days*24*60*60*1000);   
      document.cookie   =   name   +   "="+   escape(value)   +";expires="+   exp.toGMTString();   
  }   
  function   getCookie(name)   
  {   
      var   arr   =   document.cookie.match(new   RegExp("(^|   )"+name+"=([^;]*)(;|$)"));   
      if(arr   !=   null)   return   unescape(arr[2]);   return   null;   
  }   
  function   delCookie(name)   
  {   
      var   exp   =   new   Date();   
      exp.setTime(exp.getTime()   -   1);   
      var   cval=getCookie(name);   
      if(cval!=null)   document.cookie=name   +"="+cval+";expires="+exp.toGMTString();   
  } 
  function imgjxc_onclick() 
        {
            setCookie("img","2");
        };
        function IMG1_onclick() 
        {
            setCookie("img","1");
        };
        function IMG2_onclick() 
        {

            setCookie("img","3");
        };
        function imgscwd_onclick()
         {
            setCookie("img","4");
        };
        function imgcwgl_onclick() 
        {
            setCookie("img","5");
        };
        function imgxtsz_onclick()
         {
            setCookie("img","6");
         };
         function imgclick()
         {
          
               var result = getCookie("img");
                if (result=="1")
                {
                document.all.imgjjjs.src="images/clearing/top_menu_1.jpg";
                }
               if (result=="2")
                {
                document.all.imgjxc.src="images/clearing/top_menu_2_2.jpg";
                }
               if (result=="3")
                {
                document.all.imgwlgl.src="images/clearing/top_menu_3_2.jpg";
                }
               if (result=="4")
                {
                document.all.imgscwd.src="images/clearing/top_menu_4_2.jpg";
                }
                if (result=="5")
                {
                document.all.imgcwgl.src="images/clearing/top_menu_5_2.jpg";
                }
                if (result=="6")
                {
                document.all.imgxtsz.src="images/clearing/top_menu_6_2.jpg";
                }
         };  
